<?php
  use_helper('Validation');
?>

<?php if (form_has_error('password') || form_has_error('username')) { ?>
<div class="message_error"><div class="rounded">
      <div class="tr"></div><div class="tl"></div><div class="br"></div><div class="bl"></div>
       <h4 class="msg"><?php 
          echo image_tag('icons/exclamation.png');
       ?>Questo utente non esiste o hai inserito una password sbagliata</h4>
</div></div>
<br/>
<?php } ?>

<div id="loginpage">
  <div id="login_left">
    <h1 class="register">Buzzwork!</h1>
    <br />
    <h4><a href="/account_recover">Forgot your login information?</a><Br /> <Br />
  </div>

  <?php echo form_tag('user/login'); ?>
  <ul class="form">
    <li id="l_username_li">
      <?php echo input_tag('username', $sf_params->get('username'),'class="fright"'); ?></br>
      <label class="b" for="username">Username:</label>
    </li>
    <li style="border:0px;background-image:none;" id="l_password_li">
      <?php echo input_password_tag('password', null, array('class'=>"fright")); ?></br>
      <label class="b" for="password">Password:</label>
    </li>
    <?php echo submit_tag('Login (Alt+S)', array('class'=>'submit','accesskey'=>'s') ); ?>
  </ul>
  </form>
</div>